import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询外来人员报备列表
export function getBisOutsidersInfoList(query) {
    return request({
        url: '/epidemic/bisOutsiders/list',
        method: 'get',
        params: query
    })
}

// 获取外来人员报备信息
export function getBisOutsiders(bisOutsidersId) {
    return request({
        url: '/epidemic/bisOutsiders/' + parseStrEmpty(bisOutsidersId),
        method: 'get'
    })
}

// 新增外来人员报备
export function addBisOutsidersInfo(data) {
    return request({
        url: '/epidemic/bisOutsiders/add',
        method: 'post',
        data: data
    })
}

// 修改外来人员报备
export function updateBisOutsidersInfo(data) {
    return request({
        url: '/epidemic/bisOutsiders/update',
        method: 'post',
        data: data
    })
}

// 删除外来人员报备
export function delBisOutsidersInfo(bisOutsidersId) {
    return request({
        url: '/epidemic/bisOutsiders/delete/' + bisOutsidersId,
        method: 'get'
    })
}
